#！/bin/bash

app_name=$1

echo "1.Build镜像：$app_name"
docker build -t $app_name:latest -f Dockerfile .


echo "2.Tag镜像：$app_name"
docker tag $app_name:latest 10.96.183.34:5000/foo/$app_name:latest


echo "3.Push镜像：$app_name"
docker push 10.96.183.34:5000/foo/$app_name:latest

echo "4.Push镜像：$app_name"